package com.bw.service;

import com.bw.bean.Student;
import com.bw.mapper.SugarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SugarServiceImp implements SugarService{
    @Autowired
    SugarMapper sugarMapper;

    @Override
    public List<Student> finAll() {
        return sugarMapper.finAll();
    }

    @Override
    public Student findById(Integer id) {
        return sugarMapper.findById(id);
    }
}
